// 定义一些路由
import Index from "../pages/Index.vue";
import Team from "../pages/TeamPage.vue";
import UserPage from "../pages/UserPage.vue";
import UserUpdatePage from "../pages/UserUpdatePage.vue";
import UserTeamJoinPage from "../pages/UserTeamJoinPage.vue";
import UserTeamCreatePage from "../pages/UserTeamCreatePage.vue";
import SearchPage from "../pages/SearchPage.vue";
import SearchResultPage from "../pages/SearchResultPage.vue";
import UserEditPage from "../pages/UserEditPage.vue";
import UserLoginPage from "../pages/UserLoginPage.vue";
import TeamAddPage from "../pages/TeamAddPage.vue";
import TeamUpdatePage from "../pages/TeamUpdatePage.vue";
import Chat from "../components/Chat.vue";
import ChatPage from "../pages/ChatPage.vue";
import FriendsPage from "../pages/FriendsPage.vue";
import ApplicationRecord from "../pages/ApplicationRecord.vue";
import UserShow from "../pages/UserShow.vue";

const routes = [
    {path: '/', component: Index},
    {path: '/team', title: '找队伍', component: Team},
    {path: '/team/add', title: '创建队伍', component: TeamAddPage},
    {path: '/team/update', title: '更新队伍', component: TeamUpdatePage},
    {path: '/user', title: '个人信息', component: UserPage},
    {path: '/search', title: '找朋友', component: SearchPage},
    {path: '/user/list', title: '用户列表', component: SearchResultPage},
    {path: '/user/edit', title: '编辑信息', component: UserEditPage},
    {path: '/user/login', title: '登录', component: UserLoginPage},
    {path: '/user/update', title: '更新信息', component: UserUpdatePage},
    {path: '/user/team/join', title: '加入队伍', component: UserTeamJoinPage},
    {path: '/user/team/create', title: '创建队伍', component: UserTeamCreatePage},
    {path: '/public_chat', title: '聊天室', component: Chat},
    {path: '/chat', title: '聊天', component: ChatPage},
    {path: '/friends', title: '我的好友', component: FriendsPage},
    {path: '/apply', title: '新的朋友', component: ApplicationRecord},
    {path: '/user/show/:userId', name: 'userShow', title: '查看用户', component: UserShow},
]

export default routes;
